package cn.ligoo.part.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.ligoo.part.dao.SysActionDao;
import cn.ligoo.part.domain.SysAction;
import cn.ligoo.part.service.SysActionService;

/**
 * @author Jin,QingHua
 * @version 2012-07-17 16:46:31
 */
@Service
public class SysActionServiceImpl implements SysActionService {

	@Resource
	private SysActionDao sysActionDao;

	@Override
	public Integer createSysAction(SysAction t) {
		this.sysActionDao.insertEntity(t);
		return t.getId();
	}

	@Override
	public int modifySysAction(SysAction t) {
		return this.sysActionDao.updateEntity(t);
	}

	@Override
	public int removeSysAction(SysAction t) {
		return this.sysActionDao.deleteEntity(t);
	}

	@Override
	public SysAction getSysAction(SysAction t) {
		return this.sysActionDao.selectEntity(t);
	}

	@Override
	public Integer getSysActionCount(SysAction t) {
		return this.sysActionDao.selectEntityCount(t);
	}

	@Override
	public List<SysAction> getSysActionList(SysAction t) {
		return this.sysActionDao.selectEntityList(t);
	}

}
